/**
 * 通用数据-单例模式
 */
class Data {
  DATA = {
    user: {
    }
  };
  static getInstance () {
    if (!Data.Instance) {
      Data.Instance = new Data()
    }
    return Data.Instance
  }
  constructor () { }

  init () { }

  setData (data) {
    this.DATA = Object.assign({}, data)
  }

  get getData () {
    return this.DATA
  }
}

export default Data.getInstance()
